import { createStore } from "vuex"

const muduleA = {
    namespaced: true,
    state: () => {
        return {
            personNum: 0
        }
    },
    mutations: {
        increment: state => {
            state.personNum++;
        }
    }
}

// 创建一个新的 store 实例
const store = createStore({
    state() {
        return {
            seyHello: "Hello World"
        };
    },
    modules: {
        muduleA
    }
});

export default store